#!/usr/bin/env python
#!coding=utf-8

from bottle import template
from  bottle_ste_pyproxy import BottleStePyProxy as py

def say(what):
    return 'I say %s' % what

py.setup(say)
py.setup(say,'sayhi')

ts='''
%py.multiline()
a=1
b=2
c=3
%lines=py.getmultiline()
hello,{{py.say(what)}}
{{py.sayhi(what)}}
{{lines}}
'''
print template(ts,what='Hi')


